import request from '@/utils/request'

// 查询车辆长度列表
export function listVehiclelengh(query) {
  return request({
    url: '/driver/vehiclelengh/list',
    method: 'get',
    params: query
  })
}

// 查询车辆长度详细
export function getVehiclelengh(id) {
  return request({
    url: '/driver/vehiclelengh/' + id,
    method: 'get'
  })
}

// 新增车辆长度
export function addVehiclelengh(data) {
  return request({
    url: '/driver/vehiclelengh',
    method: 'post',
    data: data
  })
}

// 修改车辆长度
export function updateVehiclelengh(data) {
  return request({
    url: '/driver/vehiclelengh',
    method: 'put',
    data: data
  })
}

// 删除车辆长度
export function delVehiclelengh(id) {
  return request({
    url: '/driver/vehiclelengh/' + id,
    method: 'delete'
  })
}
